package day03;

/*
题⽬要求：⼩明有2元，买东⻄花了1.1元，问找零多少，请⽤Java代码描述上述过程！ 
注意：观察程序运算输出是否能得到0.9，如果不能，请解决该精度问题。
 */
/*public class day3 {
    public static void main(String[] args) {
        int totalCents = 200; 
        int costCents = 110; 
        int changeCents = totalCents - costCents;
        System.out.println("找零: " + changeCents + " 元");  
    }
}*/

/*请定义2个变量，分别⽤每天对应的毫秒数以及微秒数（表达式描述）给其赋值。输出变量值，观察是否正确。如果输出有问题，请解决！ */
/*public class day3 {
    public static void main(String[] args) {
        long millisPerDay = 24L * 60 * 60 * 1000;
        long microsPerDay = 24L * 60 * 60 * 1000 * 1000;
        System.out.println("每天毫秒数: " + millisPerDay);
        System.out.println("每天微秒数: " + microsPerDay);
    }
}*/

public class day3 {
    public static void main(String[] args) {
        Test1();
        TestAnother1();
    }
    private static void Test1() {
        System.out.println("[Test1] What's wrong with this program?");
    }
    private static void TestAnother1() {
        System.out.println("[TestAnother1] What's wrong with this program?");
    }
}

